package com.hnevc.liangxiangju;

import jdk.internal.org.objectweb.asm.tree.MultiANewArrayInsnNode;

/**
 *
 * object类
 * 重写toString方法
 */
public class Example02 {
    public static void main(String[] args) {
        Animal1 animal1 =new Animal1();
        System.out.println(animal1.toString());
    }
}
class Animal1{
    //public String toString(){
     //   return "这个是一个动物";
   // }

}